package com.medical.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical.common.utils.PageUtils;
import com.medical.common.utils.Query;

import com.medical.patient.dao.PatientTurnImgDao;
import com.medical.patient.entity.PatientTurnImgEntity;
import com.medical.patient.service.PatientTurnImgService;


@Service("patientTurnImgService")
public class PatientTurnImgServiceImpl extends ServiceImpl<PatientTurnImgDao, PatientTurnImgEntity> implements PatientTurnImgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        QueryWrapper<PatientTurnImgEntity> wrapper = new QueryWrapper<>();
        wrapper.orderByAsc("level");
        IPage<PatientTurnImgEntity> page = this.page(
                new Query<PatientTurnImgEntity>().getPage(params),
                wrapper
        );

        return new PageUtils(page);
    }

}